//
//  WarHeaderCollectionReusableView.m
//  HappyNews
//
//  Created by lanou on 16/1/13.
//  Copyright © 2016年 BPWBANP. All rights reserved.
//

#import "WarHeaderCollectionReusableView.h"

@implementation WarHeaderCollectionReusableView


- (void)setImageWarArr:(NSMutableArray *)imageWarArr
{
    _imageWarArr = imageWarArr;
    if (imageWarArr.count > 0) {
        if (_picView == nil) {
            _picView = [DCPicScrollView picScrollViewWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight / 3) WithImageUrls:_imageWarArr];
            
            _picView.titleData = _titleWarArr;
            
            [_picView setImageViewDidTapAtIndex:^(NSInteger index) {
                NSLog(@"%ld",index);
            }];
            
            _picView.AutoScrollDelay = 3.0f;
            
            [self addSubview:_picView];
            [[DCWebImageManager shareManager]setDownloadImageRepeatCount:1];
            
            [[DCWebImageManager shareManager]setDownLoadImageError:^(NSError *error, NSString *url) {
                NSLog(@"%@",error);
            }];
        }
        
    }
    
    
    
    
}


@end
